/*
 * Copyright 2012 Benoît Combe <benoit.combe@gmail.com>.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package fr.ipst.spot.entites.utils;

/**
 *
 * @author Benoît Combe <benoit.combe@gmail.com>
 */
public enum Pays {

    /**
     *
     */
    afghanistan(0, "Afghanistan", 0),
    /**
     *
     */
    afrique_du_sud(1, "Afrique du Sud", 1),
    /**
     *
     */
    akrotiri(2, "Akrotiri", 2),
    /**
     *
     */
    albanie(3, "Albanie", 3),
    /**
     *
     */
    algerie(4, "Algérie", 4),
    /**
     *
     */
    allemagne(5, "Allemagne", 5),
    /**
     *
     */
    andorre(6, "Andorre", 6),
    /**
     *
     */
    angola(7, "Angola", 7),
    /**
     *
     */
    anguilla(8, "Anguilla", 8),
    /**
     *
     */
    antarctique(9, "Antarctique", 9),
    /**
     *
     */
    antigua_et_barbuda(10, "Antigua-et-Barbuda", 10),
    /**
     *
     */
    antilles_neerlandaises(11, "Antilles néerlandaises", 11),
    /**
     *
     */
    arabie_saoudite(12, "Arabie saoudite", 12),
    /**
     *
     */
    arctic_ocean(13, "Arctic Ocean", 13),
    /**
     *
     */
    argentine(14, "Argentine", 14),
    /**
     *
     */
    armenie(15, "Arménie", 15),
    /**
     *
     */
    aruba(16, "Aruba", 16),
    /**
     *
     */
    ashmore_and_cartier_islands(17, "Ashmore and Cartier Islands", 17),
    /**
     *
     */
    atlantic_ocean(18, "Atlantic Ocean", 18),
    /**
     *
     */
    australie(19, "Australie", 19),
    /**
     *
     */
    autriche(20, "Autriche", 20),
    /**
     *
     */
    azerbaidjan(21, "Azerbaïdjan", 21),
    /**
     *
     */
    bahamas(22, "Bahamas", 22),
    /**
     *
     */
    bahrein(23, "Bahreïn", 23),
    /**
     *
     */
    bangladesh(24, "Bangladesh", 24),
    /**
     *
     */
    barbade(25, "Barbade", 25),
    /**
     *
     */
    belau(26, "Belau", 26),
    /**
     *
     */
    belgique(27, "Belgique", 27),
    /**
     *
     */
    belize(28, "Belize", 28),
    /**
     *
     */
    benin(29, "Bénin", 29),
    /**
     *
     */
    bermudes(30, "Bermudes", 30),
    /**
     *
     */
    bhoutan(31, "Bhoutan", 31),
    /**
     *
     */
    bielorussie(32, "Biélorussie", 32),
    /**
     *
     */
    birmanie(33, "Birmanie", 33),
    /**
     *
     */
    bolivie(34, "Bolivie", 34),
    /**
     *
     */
    bosnie_herzegovine(35, "Bosnie-Herzégovine", 35),
    /**
     *
     */
    botswana(36, "Botswana", 36),
    /**
     *
     */
    bresil(37, "Brésil", 37),
    /**
     *
     */
    brunei(38, "Brunei", 38),
    /**
     *
     */
    bulgarie(39, "Bulgarie", 39),
    /**
     *
     */
    burkina_faso(40, "Burkina Faso", 40),
    /**
     *
     */
    burundi(41, "Burundi", 41),
    /**
     *
     */
    cambodge(42, "Cambodge", 42),
    /**
     *
     */
    cameroun(43, "Cameroun", 43),
    /**
     *
     */
    canada(44, "Canada", 44),
    /**
     *
     */
    cap_vert(45, "Cap-Vert", 45),
    /**
     *
     */
    chili(46, "Chili", 46),
    /**
     *
     */
    chine(47, "Chine", 47),
    /**
     *
     */
    chypre(48, "Chypre", 48),
    /**
     *
     */
    clipperton_island(49, "Clipperton Island", 49),
    /**
     *
     */
    colombie(50, "Colombie", 50),
    /**
     *
     */
    comores(51, "Comores", 51),
    /**
     *
     */
    congo(52, "Congo", 52),
    /**
     *
     */
    coral_sea_islands(53, "Coral Sea Islands", 53),
    /**
     *
     */
    coree_du_nord(54, "Corée du Nord", 54),
    /**
     *
     */
    coree_du_sud(55, "Corée du Sud", 55),
    /**
     *
     */
    costa_rica(56, "Costa Rica", 56),
    /**
     *
     */
    cote_d_ivoire(57, "Côte d'Ivoire", 57),
    /**
     *
     */
    croatie(58, "Croatie", 58),
    /**
     *
     */
    cuba(59, "Cuba", 59),
    /**
     *
     */
    danemark(60, "Danemark", 60),
    /**
     *
     */
    dhekelia(61, "Dhekelia", 61),
    /**
     *
     */
    djibouti(62, "Djibouti", 62),
    /**
     *
     */
    dominique(63, "Dominique", 63),
    /**
     *
     */
    egypte(64, "Égypte", 64),
    /**
     *
     */
    emirats_arabes_unis(65, "Émirats arabes unis", 65),
    /**
     *
     */
    equateur(66, "Équateur", 66),
    /**
     *
     */
    erythree(67, "Érythrée", 67),
    /**
     *
     */
    espagne(68, "Espagne", 68),
    /**
     *
     */
    estonie(69, "Estonie", 69),
    /**
     *
     */
    etats_unis(70, "États-Unis", 70),
    /**
     *
     */
    ethiopie(71, "Éthiopie", 71),
    /**
     *
     */
    ex_republique_yougoslave_de_macedoine(72, "ex-République yougoslave de Macédoine", 72),
    /**
     *
     */
    finlande(73, "Finlande", 73),
    /**
     *
     */
    france(74, "France", 74),
    /**
     *
     */
    gabon(75, "Gabon", 75),
    /**
     *
     */
    gambie(76, "Gambie", 76),
    /**
     *
     */
    gaza_strip(77, "Gaza Strip", 77),
    /**
     *
     */
    georgie(78, "Géorgie", 78),
    /**
     *
     */
    ghana(79, "Ghana", 79),
    /**
     *
     */
    gibraltar(80, "Gibraltar", 80),
    /**
     *
     */
    grece(81, "Grèce", 81),
    /**
     *
     */
    grenade(82, "Grenade", 82),
    /**
     *
     */
    groenland(83, "Groenland", 83),
    /**
     *
     */
    guam(84, "Guam", 84),
    /**
     *
     */
    guatemala(85, "Guatemala", 85),
    /**
     *
     */
    guernsey(86, "Guernsey", 86),
    /**
     *
     */
    guinee(87, "Guinée", 87),
    /**
     *
     */
    guinee_equatoriale(88, "Guinée équatoriale", 88),
    /**
     *
     */
    guinee_bissao(89, "Guinée-Bissao", 89),
    /**
     *
     */
    guyana(90, "Guyana", 90),
    /**
     *
     */
    haiti(91, "Haïti", 91),
    /**
     *
     */
    honduras(92, "Honduras", 92),
    /**
     *
     */
    hong_kong(93, "Hong Kong", 93),
    /**
     *
     */
    hongrie(94, "Hongrie", 94),
    /**
     *
     */
    ile_bouvet(95, "Ile Bouvet", 95),
    /**
     *
     */
    ile_christmas(96, "Ile Christmas", 96),
    /**
     *
     */
    ile_norfolk(97, "Ile Norfolk", 97),
    /**
     *
     */
    iles_cayman(98, "Iles Cayman", 98),
    /**
     *
     */
    iles_cook(99, "Iles Cook", 99),
    /**
     *
     */
    iles_des_cocos_keeling(100, "Iles des Cocos (Keeling)", 100),
    /**
     *
     */
    iles_falkland(101, "Iles Falkland", 101),
    /**
     *
     */
    iles_feroe(102, "Iles Féroé", 102),
    /**
     *
     */
    iles_fidji(103, "Iles Fidji", 103),
    /**
     *
     */
    iles_georgie_du_sud_et_sandwich_du_sud(104, "Iles Géorgie du Sud et Sandwich du Sud", 104),
    /**
     *
     */
    iles_heard_et_mcdonald(105, "Iles Heard et McDonald", 105),
    /**
     *
     */
    iles_marshall(106, "Iles Marshall", 106),
    /**
     *
     */
    iles_pitcairn(107, "Iles Pitcairn", 107),
    /**
     *
     */
    iles_salomon(108, "Iles Salomon", 108),
    /**
     *
     */
    iles_svalbard_et_jan_mayen(109, "Iles Svalbard et Jan Mayen", 109),
    /**
     *
     */
    iles_turks_et_caicos(110, "Iles Turks-et-Caicos", 110),
    /**
     *
     */
    iles_vierges_americaines(111, "Iles Vierges américaines", 111),
    /**
     *
     */
    iles_vierges_britanniques(112, "Iles Vierges britanniques", 112),
    /**
     *
     */
    inde(113, "Inde", 113),
    /**
     *
     */
    indian_ocean(114, "Indian Ocean", 114),
    /**
     *
     */
    indonesie(115, "Indonésie", 115),
    /**
     *
     */
    iran(116, "Iran", 116),
    /**
     *
     */
    iraq(117, "Iraq", 117),
    /**
     *
     */
    irlande(118, "Irlande", 118),
    /**
     *
     */
    islande(119, "Islande", 119),
    /**
     *
     */
    israel(120, "Israël", 120),
    /**
     *
     */
    italie(121, "Italie", 121),
    /**
     *
     */
    jamaique(122, "Jamaïque", 122),
    /**
     *
     */
    jan_mayen(123, "Jan Mayen", 123),
    /**
     *
     */
    japon(124, "Japon", 124),
    /**
     *
     */
    jersey(125, "Jersey", 125),
    /**
     *
     */
    jordanie(126, "Jordanie", 126),
    /**
     *
     */
    kazakhstan(127, "Kazakhstan", 127),
    /**
     *
     */
    kenya(128, "Kenya", 128),
    /**
     *
     */
    kirghizistan(129, "Kirghizistan", 129),
    /**
     *
     */
    kiribati(130, "Kiribati", 130),
    /**
     *
     */
    koweit(131, "Koweït", 131),
    /**
     *
     */
    laos(132, "Laos", 132),
    /**
     *
     */
    lesotho(133, "Lesotho", 133),
    /**
     *
     */
    lettonie(134, "Lettonie", 134),
    /**
     *
     */
    liban(135, "Liban", 135),
    /**
     *
     */
    liberia(136, "Liberia", 136),
    /**
     *
     */
    libye(137, "Libye", 137),
    /**
     *
     */
    liechtenstein(138, "Liechtenstein", 138),
    /**
     *
     */
    lituanie(139, "Lituanie", 139),
    /**
     *
     */
    luxembourg(140, "Luxembourg", 140),
    /**
     *
     */
    macao(141, "Macao", 141),
    /**
     *
     */
    madagascar(142, "Madagascar", 142),
    /**
     *
     */
    malaisie(143, "Malaisie", 143),
    /**
     *
     */
    malawi(144, "Malawi", 144),
    /**
     *
     */
    maldives(145, "Maldives", 145),
    /**
     *
     */
    mali(146, "Mali", 146),
    /**
     *
     */
    malte(147, "Malte", 147),
    /**
     *
     */
    man_isle_of(148, "Man, Isle of", 148),
    /**
     *
     */
    mariannes_du_nord(149, "Mariannes du Nord", 149),
    /**
     *
     */
    maroc(150, "Maroc", 150),
    /**
     *
     */
    maurice(151, "Maurice", 151),
    /**
     *
     */
    mauritanie(152, "Mauritanie", 152),
    /**
     *
     */
    mayotte(153, "Mayotte", 153),
    /**
     *
     */
    mexique(154, "Mexique", 154),
    /**
     *
     */
    micronesie(155, "Micronésie", 155),
    /**
     *
     */
    moldavie(156, "Moldavie", 156),
    /**
     *
     */
    monaco(157, "Monaco", 157),
    /**
     *
     */
    monde(158, "Monde", 158),
    /**
     *
     */
    mongolie(159, "Mongolie", 159),
    /**
     *
     */
    montenegro(160, "Monténégro", 160),
    /**
     *
     */
    montserrat(161, "Montserrat", 161),
    /**
     *
     */
    mozambique(162, "Mozambique", 162),
    /**
     *
     */
    namibie(163, "Namibie", 163),
    /**
     *
     */
    nauru(164, "Nauru", 164),
    /**
     *
     */
    navassa_island(165, "Navassa Island", 165),
    /**
     *
     */
    nepal(166, "Népal", 166),
    /**
     *
     */
    nicaragua(167, "Nicaragua", 167),
    /**
     *
     */
    niger(168, "Niger", 168),
    /**
     *
     */
    nigeria(169, "Nigeria", 169),
    /**
     *
     */
    nioue(170, "Nioué", 170),
    /**
     *
     */
    norvege(171, "Norvège", 171),
    /**
     *
     */
    nouvelle_caledonie(172, "Nouvelle-Calédonie", 172),
    /**
     *
     */
    nouvelle_zelande(173, "Nouvelle-Zélande", 173),
    /**
     *
     */
    oman(174, "Oman", 174),
    /**
     *
     */
    ouganda(175, "Ouganda", 175),
    /**
     *
     */
    ouzbekistan(176, "Ouzbékistan", 176),
    /**
     *
     */
    pacific_ocean(177, "Pacific Ocean", 177),
    /**
     *
     */
    pakistan(178, "Pakistan", 178),
    /**
     *
     */
    panama(179, "Panama", 179),
    /**
     *
     */
    papouasie_nouvelle_guinee(180, "Papouasie-Nouvelle-Guinée", 180),
    /**
     *
     */
    paracel_islands(181, "Paracel Islands", 181),
    /**
     *
     */
    paraguay(182, "Paraguay", 182),
    /**
     *
     */
    pays_bas(183, "Pays-Bas", 183),
    /**
     *
     */
    perou(184, "Pérou", 184),
    /**
     *
     */
    philippines(185, "Philippines", 185),
    /**
     *
     */
    pologne(186, "Pologne", 186),
    /**
     *
     */
    polynesie_francaise(187, "Polynésie française", 187),
    /**
     *
     */
    porto_rico(188, "Porto Rico", 188),
    /**
     *
     */
    portugal(189, "Portugal", 189),
    /**
     *
     */
    qatar(190, "Qatar", 190),
    /**
     *
     */
    republique_centrafricaine(191, "République centrafricaine", 191),
    /**
     *
     */
    republique_democratique_du_congo(192, "République démocratique du Congo", 192),
    /**
     *
     */
    republique_dominicaine(193, "République dominicaine", 193),
    /**
     *
     */
    republique_tcheque(194, "République tchèque", 194),
    /**
     *
     */
    roumanie(195, "Roumanie", 195),
    /**
     *
     */
    royaume_uni(196, "Royaume-Uni", 196),
    /**
     *
     */
    russie(197, "Russie", 197),
    /**
     *
     */
    rwanda(198, "Rwanda", 198),
    /**
     *
     */
    sahara_occidental(199, "Sahara occidental", 199),
    /**
     *
     */
    saint_christophe_et_nieves(200, "Saint-Christophe-et-Niévès", 200),
    /**
     *
     */
    sainte_helene(201, "Sainte-Hélène", 201),
    /**
     *
     */
    sainte_lucie(202, "Sainte-Lucie", 202),
    /**
     *
     */
    saint_marin(203, "Saint-Marin", 203),
    /**
     *
     */
    saint_pierre_et_miquelon(204, "Saint-Pierre-et-Miquelon", 204),
    /**
     *
     */
    saint_siege(205, "Saint-Siège", 205),
    /**
     *
     */
    saint_vincent_et_les_grenadines(206, "Saint-Vincent-et-les-Grenadines", 206),
    /**
     *
     */
    salvador(207, "Salvador", 207),
    /**
     *
     */
    samoa(208, "Samoa", 208),
    /**
     *
     */
    samoa_americaines(209, "Samoa américaines", 209),
    /**
     *
     */
    sao_tome_et_principe(210, "Sao Tomé-et-Principe", 210),
    /**
     *
     */
    senegal(211, "Sénégal", 211),
    /**
     *
     */
    serbie(212, "Serbie", 212),
    /**
     *
     */
    seychelles(213, "Seychelles", 213),
    /**
     *
     */
    sierra_leone(214, "Sierra Leone", 214),
    /**
     *
     */
    singapour(215, "Singapour", 215),
    /**
     *
     */
    slovaquie(216, "Slovaquie", 216),
    /**
     *
     */
    slovenie(217, "Slovénie", 217),
    /**
     *
     */
    somalie(218, "Somalie", 218),
    /**
     *
     */
    soudan(219, "Soudan", 219),
    /**
     *
     */
    southern_ocean(220, "Southern Ocean", 220),
    /**
     *
     */
    spratly_islands(221, "Spratly Islands", 221),
    /**
     *
     */
    sri_lanka(222, "Sri Lanka", 222),
    /**
     *
     */
    suede(223, "Suède", 223),
    /**
     *
     */
    suisse(224, "Suisse", 224),
    /**
     *
     */
    suriname(225, "Suriname", 225),
    /**
     *
     */
    swaziland(226, "Swaziland", 226),
    /**
     *
     */
    syrie(227, "Syrie", 227),
    /**
     *
     */
    tadjikistan(228, "Tadjikistan", 228),
    /**
     *
     */
    taiwan(229, "Taïwan", 229),
    /**
     *
     */
    tanzanie(230, "Tanzanie", 230),
    /**
     *
     */
    tchad(231, "Tchad", 231),
    /**
     *
     */
    terres_australes_francaises(232, "Terres australes françaises", 232),
    /**
     *
     */
    territoire_britannique_de_l_ocean_indien(233, "Territoire britannique de l'Océan Indien", 233),
    /**
     *
     */
    thailande(234, "Thaïlande", 234),
    /**
     *
     */
    timor_oriental(235, "Timor Oriental", 235),
    /**
     *
     */
    togo(236, "Togo", 236),
    /**
     *
     */
    tokelaou(237, "Tokélaou", 237),
    /**
     *
     */
    tonga(238, "Tonga", 238),
    /**
     *
     */
    trinite_et_tobago(239, "Trinité-et-Tobago", 239),
    /**
     *
     */
    tunisie(240, "Tunisie", 240),
    /**
     *
     */
    turkmenistan(241, "Turkménistan", 241),
    /**
     *
     */
    turquie(242, "Turquie", 242),
    /**
     *
     */
    tuvalu(243, "Tuvalu", 243),
    /**
     *
     */
    ukraine(244, "Ukraine", 244),
    /**
     *
     */
    union_europeenne(245, "Union européenne", 245),
    /**
     *
     */
    uruguay(246, "Uruguay", 246),
    /**
     *
     */
    vanuatu(247, "Vanuatu", 247),
    /**
     *
     */
    venezuela(248, "Venezuela", 248),
    /**
     *
     */
    viet_nam(249, "Viêt Nam", 249),
    /**
     *
     */
    wake_island(250, "Wake Island", 250),
    /**
     *
     */
    wallis_et_futuna(251, "Wallis-et-Futuna", 251),
    /**
     *
     */
    west_bank(252, "West Bank", 252),
    /**
     *
     */
    yemen(253, "Yémen", 253),
    /**
     *
     */
    zambie(254, "Zambie", 254),
    /**
     *
     */
    zimbabwe(255, "Zimbabwe", 255);
    private Integer codeSql;
    private String nomPays;
    private Integer codeGescicca;

    private Pays(Integer codeSql, String nomPays, Integer codeGescicca) {
        this.codeSql = codeSql;
        this.nomPays = nomPays;
        this.codeGescicca = codeGescicca;
    }

    /**
     *
     * @return
     */
    public Integer getCodeGescicca() {
        return codeGescicca;
    }

    /**
     *
     * @return
     */
    public Integer getCodeSql() {
        return codeSql;
    }

    /**
     *
     * @return
     */
    public String getNomPays() {
        return nomPays;
    }

    /**
     *
     * @param codeSql
     * @return
     */
    public static Pays getPaysByCodeSql(Integer codeSql) {
        try {
            return Pays.values()[codeSql];
        } catch (IndexOutOfBoundsException e) {
            return null;
        }
    }
}
